<?php
		if($kboy_userid){
			// 是否已被删除
			if(getNewsNums("kboy_user","uid=$kboy_userid")<1){
				$_SESSION['kboy_userid'] = "";
				$_SESSION['kboy_user'] = "";
				echo re("login.php");
			}
			// 查询用户信息
			$user_sql = "select * from kboy_user where uid=$kboy_userid";
			$user_rows = mysql_query($user_sql);
			$user_rs = mysql_fetch_array($user_rows);
			$user_uid = $user_rs['uid'];
			$user_email = $user_rs['user_email'];
			$user_phone = $user_rs['user_phone'];
			$user_nickname = $user_rs['user_nickname'];
			$user_pid = $user_rs['user_pid'];
			$user_sex = $user_rs['user_sex'];
			$user_qq = $user_rs['user_qq'];
			$user_msn = $user_rs['user_msn'];
			$user_tel = $user_rs['user_tel'];
			$user_face = $user_rs['user_face'];
			$user_country = $user_rs['user_country'];
			$user_localprov = $user_rs['user_localprov'];
			$user_localcity = $user_rs['user_localcity'];
			$user_localdist = $user_rs['user_localdist'];
			$user_homeprov = $user_rs['user_homeprov'];
			$user_homecity = $user_rs['user_homecity'];
			$user_homedist = $user_rs['user_homedist'];
			$user_birthday = $user_rs['user_birthday'];
			$user_constellation = $user_rs['user_constellation'];
			$user_style = $user_rs['user_style'];
			$user_income = $user_rs['user_income'];
			$user_blood = $user_rs['user_blood'];
			$user_figure = $user_rs['user_figure'];
			$user_industry = $user_rs['user_industry'];
			$user_maxim = $user_rs['user_maxim'];
			$user_address = $user_rs['user_address'];
			$user_vipstime = $user_rs['user_vipstime'];
			$user_vipetime = $user_rs['user_vipetime'];
			$user_lastip = $user_rs['user_lastip'];
			$user_lasttime = $user_rs['user_lasttime'];
			$user_about = $user_rs['user_about'];
			$user_realname = $user_rs['user_realname'];
			$user_idcard = $user_rs['user_idcard'];
			$user_lasthd = $user_rs['user_lasthd'];
		}else{
			$_SESSION['kboy_userid'] = "";
			$_SESSION['kboy_user'] = "";
			echo re("login.php");
		}
?>
<div class="member-ban">
        <div class="member-pic">
            <img src="images/mem_ban.jpg" alt=""/>
        </div>
        <div class="member-square">
            <div class="member-ads"><img src="images/mem_pic1_1.png" width="354" height="191" alt=""/></div>
            <div class="member-info">
                <div class="content">
                    <div class="member-l-1">
                        <dl>
                            <dt>
							<?php
									if($user_face){
										echo "<img src=\"".$user_face."\" width=\"75\" height=\"75\"/>";
									}
							?>
							
							</dt>
                            <dd>
                                <p class="wel">
								<?php
									$LoginH = date("G");
									if($LoginH >=6 && $LoginH < 12){
										echo "上午好";
									}elseif($LoginH >= 12 && $LoginH < 18){
										echo "下午好";
									}else{
										echo "晚上好";
									}								
								?>，<span><?=$user_nickname?></span></p>
                                <p class="info"><span>手机：<?=$user_phone?></span><span>邮箱：<?=$user_email?></span></p>
                            </dd>
                        </dl>
                    </div>
                    <div class="member-r-1"><a href="index.php" class="back"><i class="icon-back"></i>返回网站首页</a></div>
                    <div class="member-r-2">
                        <ul>
                            <li>
                                <a href="user_order.php?state=1">
                                    <span class="tips"><i class="m-icon icon-mp"></i>待付款</span>
                                    <span class="num"><?=getNewsNums("kboy_order"," order_state=0 and  uid =$kboy_userid");?></span>
                                </a>
                            </li>
                            <li>
                                <a href="user_order.php?state=2">
                                    <span class="tips"><i class="m-icon icon-fp"></i>已付款</span>
                                    <span class="num"><?=getNewsNums("kboy_order"," order_state=1 and uid =$kboy_userid");?></span>
                                </a>
                            </li>
                            <li>
                                <a href="user_order.php?state=3">
                                    <span class="tips"><i class="m-icon icon-over"></i>已结束</span>
                                    <span class="num">0</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>